package cn.edu.scau.cmi.ema.dao;

import java.util.Set;

import org.springframework.dao.DataAccessException;
import cn.edu.scau.cmi.ema.domain.*;
import cn.edu.scau.cmi.ema.domain.base.CmiPagination;

public interface MotiveDAO extends JpaDao<Motive> {

	public Motive findMotiveById(Integer id) throws DataAccessException;

	public Motive findMotiveById(Integer id, int startResult, int maxRows) throws DataAccessException;

	public Set<Motive> findMotiveByName(String name) throws DataAccessException;

	public Set<Motive> findMotiveByName(String name, int startResult, int maxRows) throws DataAccessException;

	public Set<Motive> findMotiveByNameContaining(String name_1) throws DataAccessException;

	public Set<Motive> findMotiveByNameContaining(String name_1, int startResult, int maxRows)
			throws DataAccessException;

	public Set<Motive> findMotiveByDescription(String description) throws DataAccessException;

	public Set<Motive> findMotiveByDescription(String description, int startResult, int maxRows)
			throws DataAccessException;

	public Set<Motive> findMotiveByDescriptionContaining(String description_1) throws DataAccessException;

	public Set<Motive> findMotiveByDescriptionContaining(String description_1, int startResult, int maxRows)
			throws DataAccessException;

	public Motive findMotiveByPrimaryKey(Integer id) throws DataAccessException;

	public Motive findMotiveByPrimaryKey(Integer id, int startResult, int maxRows) throws DataAccessException;

	public Set<Motive> findMotivesByIds(Set<Integer> ids) throws DataAccessException;

	public Set<Motive> findAllMotives() throws DataAccessException;

	public Set<Motive> findAllMotives(int startResult, int maxRows) throws DataAccessException;

	public Set<Motive> findMotiveByCompositeProperities(String sql, int startResult, int maxRows)
			throws DataAccessException;

	public Set<Motive> findMotivesByDetachedCriteria(CmiPagination page) throws DataAccessException;

	public Motive findMotiveByPhysicalPrimaryKey(String name) throws DataAccessException;

	public Motive findMotiveByPhysicalPrimaryKey(String name, int startResult, int maxRows) throws DataAccessException;
}
